package com.qm.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 @author james
 @create 2021-04-22 8:24
 后台服务器拦截策略
 */
@Configuration
public class MvcConfigurer implements WebMvcConfigurer {

    //开启匹配后缀型配置  .html请求时 springMVC才会拦截
    @Override
    public void configurePathMatch(PathMatchConfigurer configurer) {
        configurer.setUseSuffixPatternMatch(true);
    }
}